package com.itmayiedu.main.threadpool.dao;

import java.sql.Connection;
import java.sql.SQLException;

public interface IConnectionPool {

    // 获取连接(重复利用机制)
    public Connection getConnection() throws Exception;

    // 释放连接(可回收机制)
    public void releaseConnection(Connection connection) throws SQLException, InterruptedException;


    // 创建Connection连接
    public Connection newConnection() throws Exception;
}

